fix: remove duplicate code block causing IndentationError in brlogin.py and Fix fractional quantity display and improve Delta Exchange order management#1090
Merged
marketcalls merged 2 commits intomarketcalls:mainfrom Mar 10, 2026
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…gement - Preserve fractional crypto quantities in orderbook and tradebook formatting instead of truncating to int (e.g. 0.0001 BTC was showing as 0) - Optimize cancel_all to use bulk DELETE /v2/orders/all with individual fallback - Fix close_all_positions for spot: float size, spot symbol lookup, CNC product Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix: remove duplicate code block causing IndentationError in brlogin.py
Summary by cubic
Removed duplicate code causing an IndentationError in
blueprints/brlogin.py’sbroker_callback, consolidating the broker check and correctly handling missing session user forcompositedgeandrmoney.Also improved Delta Exchange behavior: preserve fractional crypto quantities in order/trade books, use bulk cancel via
DELETE /v2/orders/allwith individual fallback, and fixclose_all_positionsfor spot (float sizes, spot symbol lookup,CNCproduct).Written for commit 31fcebb. Summary will update on new commits.